//Iditarod Trail
//Amelia Bauer, Elise Eiden, Christine Gerardi, Taryn Green
//CSE 20212 2012
#ifndef STORE_H_
#define STORE_H_
#include "Player.h"
#include "AreYouSureWindow.h"
#include "NameWindow.h"
#include <QWidget>
#include <QLineEdit>
#include <QGridLayout>
#include <QLabel>
#include <QTimer>
#include <string>

using namespace std;
class Store: public QWidget {
 	Q_OBJECT

public:
	//Constructor 
	Store(Player *ply, string n, string m, QTimer*, QWidget *parent = 0);

//A SLOT, aka a function that is called when a SIGNAL is activated.
public slots:
	void update();
	void validate();
	void openNewWindow();
protected:
	void boughtDogs(int, int);
private:
	Player *us;		
	QLineEdit *edit1, *edit2, *edit3, *edit4, *moneyTxt, *costTotalTxt;
	QLabel *txt1, *txt2, *txt3, *txt4, *dogCost,*betterDogCost, *medCost, *foodCost, *validTxt;
	QLabel *itemLabel, *costLabel, *buyLabel, *moneyLabel, *costTotalLabel;
	QLabel *name;
	QGridLayout *lay;
	int money, dogC, medC, foodC, ddC, moneyLeft;
	AreYouSureWindow *exitWindow;
	QTimer *clock;

};

#endif

